import React from 'react'
import { Button } from 'react-vant'
import { useNavigate } from 'react-router-dom'
function Index() {
  const navigate = useNavigate()
  return (
    <div>
      <Button onClick={()=>navigate('/')}>返回首页</Button>
    </div>
  )
}

export default Index
